package edu.mit.compilers.assembly.x64.codes;

import edu.mit.compilers.assembly.x64.basic.X64Operand;

public class X64CallCode extends X64Code {

    private X64Operand called;

    public X64CallCode(X64Operand called) {
        this.called = called;
    }

    @Override
    protected String getStringFroShow(String prefix, boolean debug) {
        // TODO : (maybe use callq in virtual method call hhh)
        return prefix + "call" + TAB + called.getAddress() + '\n';
    }
}
